package com.unit2.test;

import java.math.BigInteger;
import java.time.Duration;
import java.time.Instant;

/**
 * @author 李琦 on 2021/8/2.
 * @version java version "16.0.1" 2021-04-20
 * BigInteger类的使用,加 减 乘 除 求余.
 */
public class test7 {
    public static void main(String[] args) {
        BigInteger b1=new BigInteger("6666666666");
        BigInteger b2=new BigInteger("2222222222");

        System.out.println(b1.add(b2));//加法+        add
        System.out.println(b1.subtract(b2));//剪发-   subtract
        System.out.println(b1.multiply(b2));//乘法*   multiply
        System.out.println(b1.divide(b2));//除法/     divide
        System.out.println(b1.remainder(b2));//取余%  remainder




    }


}
